import {App} from "vue";
import errorsStore from "@/piniaStore/errorsStore.ts";
export default (app:App)=>{
    app.directive('clearError', {
        mounted(el:HTMLElement, binding:any) {
            el.addEventListener('focus',()=>{
                errorsStore().clearError(binding.value)
            })
        },
    })
}
